package com.iotteam.androidbase.commen.network.core;

import com.iotteam.androidbase.commen.network.core.HttpListener;

import java.util.Map;

import static android.icu.lang.UCharacter.GraphemeClusterBreak.T;

/**
 * Created by lidechen on 5/2/17.
 */

public interface INetworkWrapper {

    void init();

    <T> void postBean(String url, Map<String, String> params, Class<T> clazz, HttpListener<T> listener);
    public void postString(String url, Map<String, String> params, HttpListener<String> listener);
    <T> void getBean(String url, Map<String, String> params, Class<T> clazz, HttpListener<T> listener);
    void cancelPostBean(Map params);
}
